package kr.co.doriclassic.powerjava.chapter12;

class OutterClass {
	private String secret="This is money";
	

	public OutterClass() {
		InnerClass obj = new InnerClass();
		obj.print();
	}


	private class InnerClass{

		public InnerClass() {
			System.out.println("내부클래스");
		}
		
		public void print(){
			System.out.println(secret);
		}
	}
}
public class OuterClassTest{
	public static void main(String[] args) {
		new OutterClass();
	}
}

